package com.reguang.pojo;

import java.io.Serializable;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 
 * <p>Title: UserRole</p>
 * <p>Description: 用户与角色对应关系</p>
 * @author weibiao
 * @date 2020-01-16 15:42:44
 */
@Table(name = "sys_user_role")
public class SysUserRoleDO implements Serializable {
	private static final long serialVersionUID = 1L;

	//
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long id;
	// 用户ID
	private String userId;
	// 角色ID
	private String roleId;

	/**
	 * 设置：
	 */
	public void setId(Long id) {
		this.id = id;
	}

	/**
	 * 获取：
	 */
	public Long getId() {
		return id;
	}

	/**
	 * 设置：用户ID
	 */
	public void setUserId(String userId) {
		this.userId = userId;
	}

	/**
	 * 获取：用户ID
	 */
	public String getUserId() {
		return userId;
	}

	/**
	 * 设置：角色ID
	 */
	public void setRoleId(String roleId) {
		this.roleId = roleId;
	}

	/**
	 * 获取：角色ID
	 */
	public String getRoleId() {
		return roleId;
	}
}
